/*
 * @Author: zhuxiaoyi
 * @Date: 2024-04-19 10:49:06
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2025-07-03 12:08:50
 * @Description:
 */
import { Sld } from '../entity/sld.entity';
import { Algorithm } from '../entity/algorithm.entity';
import { Task } from '../entity/task.entity';
import { TaskLog } from '../entity/taskLog.entity';
import { Graph } from '../entity/graph.entity';
import { MiniTask } from '../entity/miniTask.entity';
import { AlgrithmType } from '../entity/algorithmType.entity';
import { M1Product } from '../entity/module1.entity';
import { EverythingSubscriber } from '../event/subscriber';
import { GraphType } from '../entity/graphType.entity';
import { SimulationTask } from '../entity/simulationTask.entity';
import { User } from '../entity/user.entity';
import { Role } from '../entity/role.entity';
import { TB_DPChangeSample_Detail } from '../entity/sampleDetail.entity'
import { TB_DPChangeSample_Info } from '../entity/sampleInfo.entity'
import { TB_DP_Mete } from '../entity/Mete.entity'
import { TB_DPEngine_Info } from '../entity/EngineInfo.entity';
import { TB_DPModel_Info } from '../entity/ModelInfo.entity';
import { Subsystem } from '../entity/subsystem.entity';
import { Token } from '../entity/token.entity';
import { SpatialFeature } from '../entity/spatialFeatures.entity';
import { TaskResult } from '../entity/taskResults.entity';
import { SoilDataEntity } from '../entity/soilData.entity';
import { StationFile,StationMeta} from '../entity/station-data.entity'
import { StationType, StationInfo, MonitoringData } from '../entity/stationManage.entity';
import { StationType1 } from '../entity/stationType.entity';
import { SoilEtResult ,CsvFile } from '../entity/detection-results.entity';
import { Feedback } from "../entity/feedBack.entity"

export default {
  algorithmBaseURL: "D:/Temp",
  dataBaseURL: "D:/Temp",
  geoServerURL: 'http://localhost:8055/geoserver',
  matlabExePath: 'D:/program files/MATLAB/R2021b/bin/matlab.exe',
  matlabRuntimeParamPath: "D:/matlabCode/runtime_params",
  ArcGISPythonURL: "C:/Python27/ArcGIS10.2/python.exe",
  PythonURL: "C:/Users/wilso/AppData/Local/Programs/Python/Python312/python.exe",
  tmpdir: 'C:/templateFiles',
  renbaoBaseURL: "http://157.122.153.115:7888",//生产环境
  // renbaoBaseURL:"http://106.120.193.138:7777",//测试环境
  jwt: {
    secret: 'your_jwt_secret', // JWT 密钥
    expiresIn: '1h', // 访问令牌有效期
    refreshExpiresIn: '7d', // 刷新令牌有效期
  },
  dataSource: {
    default: {
      type: 'postgres',
      host: 'localhost',
      port: 5432,
      username: 'postgres',
      password: 'zyjy2021',
      database: 'dwr_db',
      synchronize: true, // 如果第一次使用，不存在表，有同步的需求可以写 true，注意会丢数据
      logging: false,
      // 配置实体模型
      entities: [Sld, Algorithm, Task, TaskLog, Graph, MiniTask, AlgrithmType,
         GraphType, SimulationTask, User, Role, Subsystem, Token, SpatialFeature, TaskResult,SoilDataEntity,
         StationFile,StationMeta,StationType, StationInfo, MonitoringData,StationType1,
         SoilEtResult, CsvFile,Feedback
      ],
      subscribers: [EverythingSubscriber],
      extra: {
        postgis: true,
      },
    },
    custom: {
      type: 'postgres',
      host: 'localhost',
      port: 5432,
      username: 'postgres',
      password: 'zyjy2021',
      database: 'dwr_custom',
      synchronize: true, // 如果第一次使用，不存在表，有同步的需求可以写 true，注意会丢数据
      logging: false,
      // 配置实体模型
      entities: [M1Product],
    },
    /*  mysql: {
       type: 'mysql', // 数据库类型
       host: '43.138.12.162',
       port: 3306,
       username: 'root',
       password: 'zyjy2021', // 替换为你的密码
       database: 'sjy_easy_rs', // 替换为你的数据库名
       synchronize: false, // 如果需要同步表结构
       logging: false,
       entities: [Product],
     }, */
    // SQLite 配置
    sqlite: {
      type: 'sqlite',
      database: 'd:/14_一体化终端/MyProj.DB',  // SQLite 数据库文件路径
      synchronize: false,  // 如果数据库中表不存在，可以自动创建
      logging: false,
      entities: [TB_DPChangeSample_Detail, TB_DPChangeSample_Info, TB_DP_Mete, TB_DPEngine_Info, TB_DPModel_Info],  // 配置需要同步的实体
    },
  },
};
